home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / View3DMF NetScape Plugin / View3DMF Plugin / View3DMF.h < prev    next >
Encoding:
Text File  |  1996-05-21  |  1.2 KB  |  36 lines  |  [TEXT/CWIE]

  1. //
  2. // Instance state information about the plugin.
  3. //
  4. // Used to hold per-instance information that
  5. // you’ll need in the various functions in this file.
  6. //
  7.  
  8. #ifndef _View3DMF_H_
  9. #define _View3DMF_H_
  10.  
  11. #include "npapi.h"
  12.  
  13. struct _PluginInstance {
  14.     NPWindow*        fWindow;                // the Netscape window for this instantiation
  15.     uint16            fMode;                    // NP_EMBED, NP_FULL, or NP_BACKGROUND
  16.  
  17.     Boolean         fBusy;                    // Are we loading?
  18.     Handle            fBuffer;                // holds the 3DMF download
  19.     int32            fBufferLength;            // Size of picture in bytes
  20.  
  21.     TQ3ViewObject    fView ;                    // the view for the scene
  22.     TQ3GroupObject    fModel ;                // object in the scene being modelled
  23.     TQ3StyleObject    fInterpolation ;        // interpolation style used when rendering
  24.     TQ3StyleObject    fBackFacing ;            // whether to draw shapes that face away from the camera
  25.     TQ3StyleObject    fFillStyle ;            // whether drawn as solid filled object or decomposed to components
  26.     TQ3Matrix4x4    fRotation;                // the transform for the model
  27.     TQ3Point3D        fGroupCenter ;            // the center of the group (for rotation) 
  28.     float            fGroupScale    ;            // scaling factor to apply before drawing
  29.  
  30.     Rect            fRect;
  31. };
  32.  
  33. typedef struct _PluginInstance PluginInstance ;
  34.  
  35.  
  36. #endif